package com.sesame.controller;

import kim.sesame.common.web.controller.AbstractWebController;
import kim.sesame.common.result.ApiResult;
import lombok.extern.apachecommons.CommonsLog;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 生产
 */
@CommonsLog
@RestController
@RequestMapping("/test")
public class TestController extends AbstractWebController {

    @RequestMapping("/getData")
    public ApiResult getData(String name){
        String str = "spring-cloud-example-feign-service : "+ name;
        log.info(str);
        return success(str);
    }

}
